//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopSpuStatus, MinishopSpuStatusResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopSpuStatusList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopSpuStatusResponse>(`/uctoo/minishop_spu_status/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopSpuStatus = async (id: string) => {
  return requestClient.get<MinishopSpuStatus>(`/uctoo/minishop_spu_status/${id}`);
};

export const adductooMinishopSpuStatus = async (data: Partial<MinishopSpuStatus>) => {
  return requestClient.post<MinishopSpuStatus>('/uctoo/minishop_spu_status/add', data);
};

export const edituctooMinishopSpuStatus = async (data: Partial<MinishopSpuStatus>) => {
  return requestClient.post<MinishopSpuStatus>('/uctoo/minishop_spu_status/edit', data);
};

export const deleteuctooMinishopSpuStatus = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_spu_status/del', { id });
};
